package com.newtouch.cq.controllerlog.config;

import lombok.Getter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @author Alex
 * @Description 缓存配置项
 * @time 2021/8/19 15:38
 */
@Getter
@Configuration
@ConfigurationProperties("mcc.log")
public class LogProperties {

    /**
     * 禁止日志写入
     */
    public static boolean disableLog = false;

    public void setDisableLog(boolean disableLog) {
        LogProperties.disableLog = disableLog;
    }
}
